package cn.com.dycc.party_org.membership.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class MemberShipEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 2718485987295617327L;
	
	private String info_id;			// 党籍记录ID
	private String user_id;			//党员员工ID
	private String user_name;		//党员员工姓名
	private String dept_id;			//党员员工管理党支部id
	private String dept_name;		//党员员工管理党支部名称
	private String party_type;			//党籍类别 1 预备党员资格  2正式党员  3取消预备党员资格   4劝退出党   5除名  6自行脱党  7不予登记  8开除党籍
	private String party_status;			//党籍状态  1刚入党   2转正   3出党   4停止党籍   5死亡
	private Date membership_date;			//党籍变更时间
	private String membership_desc;			//党籍变更说明
	private String remark;			//备注
	private String state;			//可用标识
	private String org_id;			//组织标识
	private Timestamp create_date;			//创建时间
	private String opt_user_id;			//创建人
	
	private String dic_party_type;			//字典表党籍类别
	private String dic_party_status;			//字典表的党籍状态
	private String dic_state;			//可用状态字典表
	private String opt_user_name;			//创建人名称
	
	public MemberShipEntity(){}

	public MemberShipEntity(String info_id, String user_id, String user_name, String dept_id, String dept_name,
			String party_type, String party_status, Date membership_date, String membership_desc, String remark,
			String state, String org_id, Timestamp create_date, String opt_user_id, String dic_party_type,
			String dic_party_status, String dic_state, String opt_user_name) {
		super();
		this.info_id = info_id;
		this.user_id = user_id;
		this.user_name = user_name;
		this.dept_id = dept_id;
		this.dept_name = dept_name;
		this.party_type = party_type;
		this.party_status = party_status;
		this.membership_date = membership_date;
		this.membership_desc = membership_desc;
		this.remark = remark;
		this.state = state;
		this.org_id = org_id;
		this.create_date = create_date;
		this.opt_user_id = opt_user_id;
		this.dic_party_type = dic_party_type;
		this.dic_party_status = dic_party_status;
		this.dic_state = dic_state;
		this.opt_user_name = opt_user_name;
	}

	public String getInfo_id() {
		return info_id;
	}

	public void setInfo_id(String info_id) {
		this.info_id = info_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}

	public String getParty_type() {
		return party_type;
	}

	public void setParty_type(String party_type) {
		this.party_type = party_type;
	}

	public String getParty_status() {
		return party_status;
	}

	public void setParty_status(String party_status) {
		this.party_status = party_status;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	public Date getMembership_date() {
		return membership_date;
	}

	public void setMembership_date(Date membership_date) {
		this.membership_date = membership_date;
	}

	public String getMembership_desc() {
		return membership_desc;
	}

	public void setMembership_desc(String membership_desc) {
		this.membership_desc = membership_desc;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOrg_id() {
		return org_id;
	}

	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Timestamp getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}

	public String getOpt_user_id() {
		return opt_user_id;
	}

	public void setOpt_user_id(String opt_user_id) {
		this.opt_user_id = opt_user_id;
	}

	public String getDic_party_type() {
		return dic_party_type;
	}

	public void setDic_party_type(String dic_party_type) {
		this.dic_party_type = dic_party_type;
	}

	public String getDic_party_status() {
		return dic_party_status;
	}

	public void setDic_party_status(String dic_party_status) {
		this.dic_party_status = dic_party_status;
	}

	public String getDic_state() {
		return dic_state;
	}

	public void setDic_state(String dic_state) {
		this.dic_state = dic_state;
	}

	public String getOpt_user_name() {
		return opt_user_name;
	}

	public void setOpt_user_name(String opt_user_name) {
		this.opt_user_name = opt_user_name;
	}

	@Override
	public String toString() {
		return "MemberShipEntity [info_id=" + info_id + ", user_id=" + user_id + ", user_name=" + user_name
				+ ", dept_id=" + dept_id + ", dept_name=" + dept_name + ", party_type=" + party_type + ", party_status="
				+ party_status + ", membership_date=" + membership_date + ", membership_desc=" + membership_desc
				+ ", remark=" + remark + ", state=" + state + ", org_id=" + org_id + ", create_date=" + create_date
				+ ", opt_user_id=" + opt_user_id + ", dic_party_type=" + dic_party_type + ", dic_party_status="
				+ dic_party_status + ", dic_state=" + dic_state + ", opt_user_name=" + opt_user_name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((info_id == null) ? 0 : info_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberShipEntity other = (MemberShipEntity) obj;
		if (info_id == null) {
			if (other.info_id != null)
				return false;
		} else if (!info_id.equals(other.info_id))
			return false;
		return true;
	}
	
	
	
	
	
	
	
	

}
